import request from '@/utils/request'

// 获取订单列表
export function listAllOrder() {
  return request({
    url: '/order/listAllOrder',
    method: 'get'
  })
}

// 分页查询类别列表
export function listOrderByPage(query) {
    return request({
      url: '/order/page',
      method: 'get',
      params: query
    })
  }

// 修改订单数据
export function updateOrder(data) {
    return request({
      url: '/order/reviseOrder',
      method: 'post',
      data: data
    })
  }

// 取消订单
export function cancelOrder(query) {
    return request({
        url: '/order/cancelOrder',
        method: 'get',
        params: query
    })
}

// 撤单
export function cancelOrderItem(data) {
    return request({
        url: '/order/cancelOrderItem',
        method: 'post',
        data: data
    })
}



